<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html class="no-js">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>沃店</title>
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <!-- No Baidu Siteapp-->
    <meta http-equiv="Cache-Control" content="no-siteapp"/>

    <!-- Add to homescreen for Chrome on Android -->
    <meta name="mobile-web-app-capable" content="yes">

    <!-- Add to homescreen for Safari on iOS -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>

    <link rel="stylesheet" href="${pageContext.request.contextPath}/assets/css/amazeui.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/assets/css/app.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/assets/css/index.css">
    <script src="${pageContext.request.contextPath}/assets/js/jquery.min.js"></script>

    <script src="${pageContext.request.contextPath}/assets/js/vue.js"></script>
    <script type="text/javascript">

        $(function () {

            var packege;
            $.ajax({
                type: "get",
                async: false,
                url: '${pageContext.request.contextPath}/clientSetting/getPackage?code=05',
                dataType: 'json',
                success: function (data) {
                    if (data.success == true && data.code == 200) {

                        packege = new Vue({
                            el: "#packege",
                            data: {
                                items: data.obj
                            }
                        });
                    }
                }

            });
        });


    </script>
    <script src="${pageContext.request.contextPath}/assets/js/amazeui.min.js"></script>
    <!--必要样式-->
    <style type="text/css">
        .menuItem img {
            width: 100%;
        }

        body {
            background-color: #EFEFEF;
        }

        .package {
            background-color: #fff;
            padding: 10px 5px 10px 5px;
            height: 75px;
            margin-top: 1px;
        }

        .package a {
            float: right;
            padding: 2px 4px 2px 4px;
            border-radius: 3px;
            color: #ff6a06;
            border: 1px #ff6a06 solid;
            margin-top: 10px;

        }
    </style>
</head>

<body>
<header data-am-widget="header" class="am-header am-header-default">
    <div class="am-header-left am-header-nav">
        <a href="${pageContext.request.contextPath}/clientHome/index" class="">
            <i class="am-header-icon am-icon-home"></i>
        </a>
    </div>
    <h1 class="am-header-title">
        <a href="#title-link">手机套餐</a>
    </h1>

</header>

<div class="am-g">
    <div class="clearpadding am-u-sm-12">
        <img src="${pageContext.request.contextPath}/images/broadband.png" style="width: 100%;">
    </div>
</div>
<div class="am-g" id="packege">
    <div class="clearpadding am-u-sm-12">
        <div data-am-widget="tabs" class="clearmargin am-tabs am-tabs-d2">
            <ul class="am-tabs-nav am-cf" style="overflow-y: scroll;">
                <li :class="{'am-active': index == 0}" style="padding: 0 20px;" v-for="(item,index) in items"><a
                        href="#">{{item.sysName}}</a>
                </li>

            </ul>
            <div class="am-tabs-bd" style="margin-top: 13px;">
                <div data-tab-panel-0 class="am-tab-panel " v-bind:class="{'am-active' : index == 0}"
                     style="padding-bottom:0px;" v-for="(item,index) in items">
                    <div class="am-g package " v-for="p in item.packeges">
                        <div class="am-u-sm-3 ">
                            <img src="${pageContext.request.contextPath}/images/1357847b6b52ce1.png" style="width:100%">
                        </div>
                        <div class="am-u-sm-5 ">
                            <span class="am-text-truncate" style="display: block;">{{p.packageName}}</span>
                            <span class="am-text-truncate" style="font-size: 12px;display: block;margin-top: 5px;">{{p.description}}</span>
                        </div>
                        <div class="am-u-sm-4 ">
                            <div class=" "><a
                                    :href="'${pageContext.request.contextPath}/clientHallOrder/selectPackage?id='+p.id+'&flag=2'">立即办理</a>
                            </div>
                        </div>
                    </div>
                    <div class="clearpadding am-u-sm-12">
                        <img :src="item.sysValue" alt="" style="width: 100%;margin-top: 10px;">
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>
<div align="center" data-am-widget="navbar" class="am-navbar am-cf am-navbar-default " style="z-index:1;">
    <span>客服24小时服务热线: 0597-5283119</span>
</div>
<!--[if (gte IE 9)|!(IE)]><!-->

</body>

</html>
